import request from '@/utils/request'


//公告列表
export const getNoticeList = query => {
  return request({
    url:'/oa/notice/list',
    method: 'get',
    params: query
  })
}

//添加公告
export const addNotice = data => {
  return request({
    url:'/oa/notice/add',
    method: 'post',
    data
  });
}

//修改公告
export const editNotice = data => {
  return request({
    url:`/oa/notice/edit/${data.id}`,
    method: 'post',
    data
  });
}


//修改公告
export const delNotice = data => {
  return request({
    url:`/oa/notice/del/${data.id}`,
    method: 'post',
    data
  });
}
